package com.pojo;

/**
 * 订单状态
 * 只允许在在几种范围内取值
 *
 * 订单枚举类型3种：已付款:PAID 已挂起:SUSPENDED 未付款:UNPAID
 */

public enum OrderStatus implements StatusInfo{
    PAID("已付款"),
    UNPAID("未付款"),
    SUSPENDED("已挂起");

    //枚举只能内部调用

    private String orderStatus;

    private OrderStatus(){}

    private OrderStatus(String orderStatus){
        this.orderStatus = orderStatus;
    }

    @Override
    public String getStatus() {
        return this.orderStatus;
    }
}
